#include "MessageHadling.h"

int mainf(int argc, char* argv[]){

	Folder *f = new Folder("f");
	Folder *f2 = new Folder("f2");

	Message *msg = new Message("msg");
	Message *msg2 = new Message("msg2");

	msg->save(f);
	msg->save(f2);

	msg2 = msg;

	msg->remove(f); // Unhandled exception at 0x00f490d4 in ch13-CopyControl.exe: 0xC0000005: Access violation reading location 0xfeeefef2.
	msg->remove(f2);

	delete msg;
	delete msg2;

	
	delete f;
	delete f2;
	

	return 0;
}